]> dgit.raspbian.org Git - gnome-shell.git/commit
st_label_set_text: no-op if the text is unchanged
authorDan Winship <danw@gnome.org>
Tue, 5 Apr 2011 20:17:52 +0000 (16:17 -0400)
committerDan Winship <danw@gnome.org>
Mon, 11 Apr 2011 18:00:16 +0000 (14:00 -0400)
commita56bc9d933c4e863854059f92346bf307ff18c6d
treed5965f029d35d5b9fcad1ac758b8225d41d9782d
parent5b93525ce80097fa962620d7df7418c87aabeefe
st_label_set_text: no-op if the text is unchanged

If a caller sets an StLabel's text to what it already is (as, eg, the
clock menu does), do nothing. Unless the label is editable, in which
case, setting the text has a visible side effect (dropping the
selection), so we don't optimize that out.

https://bugzilla.gnome.org/show_bug.cgi?id=645648
src/st/st-label.c